package com.scau.ums.util.tools;

public class RepairReportTool {

    public static String returnRepairType(int repairTypeId) {
        switch (repairTypeId){
            case 1: return "供电";
            case 2: return "供水";
            case 3: return "修建";
            case 4: return "网络";
            default: return "网络";
        }
    }
    public static String returnRepairState(int repairState){
        switch (repairState){
            case 1:return "申报";
            case 2:return "审核通过";
            case 3:return "已派工";
            case 4:return "施工中";
            case 5:return "完工";
            case 6:return "待评价";
            case 7:return "结束";
            case 8:return "审核不通过";
            default:return "error";
        }
    }
    public static int findGroupByRepairType(int repairType)
    {
        switch (repairType)
        {
            case 1:return 1;
            case 2:return 2;
            case 3:return 4;
            case 4:return 3;
            default:return -1;
        }
    }
}
